from PyMimircache import Cachecow
from PyMimircache.cache.lru import LRU

lru=LRU(cache_size=20)

print("lru size is",lru.cache_size)

c=Cachecow()
c.cache_size=20

#c.open("trace.txt")
#c.csv("trace.csv",init_params={'label':1})
#c.vscsi("trace.vscsi")

c.open("traces/2_pools.txt")

print("cache size is ",c.cache_size)

print(c.stat())


# print(c.num_of_req())
# i=0
# a=b"85"
# print("a is ",a)
# for request in c:
#     i=i+1
#     print("result is ",request)
#     if request==a:
#         break
#     if i==4:
#         break

